<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Trường Thành - Quản lý hợp đồng</title>

	<meta name="description" content="overview & stats">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/bootstrap.min.css">
	<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/font-awesome.min.css">
	<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/font-opensans.css">
	<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/datepicker.css">
	<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/ace.min.css">
	<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/ace-rtl.min.css">
	<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/ace-skins.min.css">
	<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/jquery.fancybox.css"/>
	<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/fullcalendar.css">
	<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/jquery-ui-1.10.3.full.min.css">
	<script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.fancybox.js"></script>
	<script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.mask.min.js"></script>
</head>
<body style="">
<div class="loader"></div>
<div class="progressbar"></div>
<div class="navbar navbar-default" id="navbar">
	
	<script type="text/javascript">
		try{ace.settings.check('navbar' , 'fixed')}catch(e){}
	</script>
	
	<div class="navbar-container" id="navbar-container">
		<div class="navbar-header pull-left">
			<a href="index" class="navbar-brand">
				<small>
					<i class="icon-leaf"></i>
					Trường Thành
				</small>
			</a>
		</div>

		<div class="navbar-header pull-right" role="navigation">
			<ul class="nav ace-nav">
				<li class="light-blue">
					<a data-toggle="dropdown" href="#" class="dropdown-toggle">
						<img class="nav-user-photo" src="<?php echo Yii::app()->theme->baseUrl; ?>/img/user.jpg" alt="Member">
								<span class="user-info">
									<small>Chào,</small>
									<?php echo Yii::app()->user->name?>
								</span>

						<i class="icon-caret-down"></i>
					</a>

					<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
						<li>
							<a href="<?php echo Yii::app()->createUrl('user/changeInfo')?>">
								<i class="icon-user"></i>
								Cá nhân
							</a>
						</li>
						<li>
							<a href="<?php echo Yii::app()->createUrl('user/changePassword')?>">
								<i class="icon-cog"></i>
								Đổi mật khẩu
							</a>
						</li>

						<li class="divider"></li>

						<li>
							<a href="<?php echo Yii::app()->createUrl('user/logout')?>">
								<i class="icon-off"></i>
								Thoát
							</a>
						</li>
					</ul>
				</li>
			</ul>
		</div>
	</div>
</div>

<div class="main-container" id="main-container">

<script type="text/javascript">
	try{ace.settings.check('main-container' , 'fixed')}catch(e){}
</script>

<div class="main-container-inner">
<a class="menu-toggler" id="menu-toggler" href="#">
	<span class="menu-text"></span>
</a>
<?php $this->widget('SideBar')?>
<div class="main-content">
<?php echo $content;?>
</div>
	<div class="ace-settings-container" id="ace-settings-container">
		<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
			<i class="icon-cog bigger-150"></i>
		</div>

		<div class="ace-settings-box" id="ace-settings-box">
			<div>
				<div class="pull-left">
					<select id="skin-colorpicker" class="hide" style="display: none;">
						<option data-skin="default" value="#438EB9">#438EB9</option>
						<option data-skin="skin-1" value="#222A2D">#222A2D</option>
						<option data-skin="skin-2" value="#C6487E">#C6487E</option>
						<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
					</select>
				</div>
				<span>&nbsp; Chọn giao diện</span>
			</div>

			<div>
				<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar">
				<label class="lbl" for="ace-settings-navbar"> Cố định Top</label>
			</div>

			<div>
				<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar">
				<label class="lbl" for="ace-settings-sidebar"> Cố định Menu</label>
			</div>

			<div>
				<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs">
				<label class="lbl" for="ace-settings-breadcrumbs"> Cố định Đường dẫn</label>
			</div>

			<div>
				<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl">
				<label class="lbl" for="ace-settings-rtl"> Xem từ Phải sang</label>
			</div>

			<div>
				<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container">
				<label class="lbl" for="ace-settings-add-container"> Thu nhỏ trang</label>
			</div>
		</div>
	</div>
</div>

	<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
		<i class="icon-double-angle-up icon-only bigger-110"></i>
	</a>
</div>
<script type="text/javascript">
	if("ontouchend" in document) document.write("<script src='<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/ace-extra.min.js"></script>
<script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/bootstrap.min.js"></script>
<script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/bootstrap-datepicker.min.js"></script>
<script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.ui.touch-punch.min.js"></script>
<script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/fullcalendar.min.js"></script>
<script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/bootbox.min.js"></script>
<script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/ace-elements.min.js"></script>
<script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/ace.min.js"></script>
<script type="text/javascript">
	function show_box(id) {
		jQuery('.widget-box.visible').removeClass('visible');
		jQuery('#'+id).addClass('visible');
	}
	$(window).load(function() {
		$(".loader").fadeOut('slow');
	});

</script>
<script>
	$('.date-picker').datepicker({
		'format': 'dd-mm-yyyy',
		'autoclose': true,
		'orientation': "top left",
		'language': "vi"
	});
</script>
</body>
</html>